# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=lxterminal
pkgver=0.4.0
pkgrel=1
pkgdesc="Desktop-independent VTE-based terminal emulator"
url="https://lxde.org/"
arch="all"
license="GPL-2.0-or-later"
makedepends="gtk+3.0-dev intltool vte3-dev pcre2-dev"
subpackages="$pkgname-doc $pkgname-lang"
source="https://downloads.sourceforge.net/lxde/lxterminal-$pkgver.tar.xz"

# secfixes:
#   0.3.0-r1:
#     - CVE-2016-10369

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-gtk3
	make
}

check() {
	make -C src check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="d1462bf9739c5e9022cbabe9f9c8f70bbb882c0aba7a39d1f87d804f4002056151165d7555cace6f439c0acfbdcd3c959a420993379f646d066f5d30af71232e  lxterminal-0.4.0.tar.xz"
